package com.wz.utils.validated;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/test")
@Validated
public interface ValidatedApi {
    @PostMapping("/insert")
    Boolean insert(@RequestBody @Validated ParameterDTO dto);

    @PostMapping("/update")
    Boolean update(@RequestBody @Validated ParameterDTO dto);
}
